<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="mall/advert/include::header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<h5>龙虎榜修改</h5>
					</div>
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
							<input type="hidden" name="id" id="id" th:value="${dragonAndTigerList.id}">
							<div class="form-group">
								<label class="col-sm-3 control-label">图片:</label>
								<div class="col-sm-6">
									<input id="headImg" name="headImg" class="form-control" type="text" onblur="onThumbBlur()" th:value="${dragonAndTigerList.headImg}">
								</div>
								<div class="col-sm-2">
									<button type="button" onclick="onSelectImgBtnClick('headImg','thumbImg')" class="btn btn-primary"><i class="fa fa-check"></i>选择图片</button>
								</div>
							</div>
							<div class="form-group">
								<div class="col-sm-8">
									<label class="col-sm-5 control-label">-</label>
									<img class="img-responsive" id="thumbImg" src="" style="max-width: 30%" th:attr="src=${dragonAndTigerList.headImg}">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">姓名:</label>
								<div class="col-sm-8">
									<input id="name" name="name" type="text" th:value="${dragonAndTigerList.name}" class="form-control" >
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label">数量:</label>
								<div class="col-sm-8">
									<input id="num" name="num" type="text" th:value="${dragonAndTigerList.num}" class="form-control">
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label">金额:</label>
								<div class="col-sm-8">
									<input id="money" name="money" type="text" th:value="${dragonAndTigerList.money}" class="form-control">
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label">地区:</label>
								<div class="col-sm-8">
									<input id="area" name="area" type="text" th:value="${dragonAndTigerList.area}" class="form-control">
								</div>
							</div>

<!--							<label class="col-sm-3 control-label">榜单类型:</label>-->
<!--							<div class="col-sm-1">-->
<!--								<select id="isFlag" name="isFlag" th:value="${dragonAndTigerList.isFlag}"  class="form-control" tabindex="2">-->
<!--									<option value="0">虎榜</option>-->
<!--									<option value="1">龙榜</option>-->
<!--								</select>-->
<!--							</div>-->

							<div class="form-group">
								<label class="col-sm-3 control-label">榜单类型:</label>
								<div class="col-sm-8">
									<label class="radio-inline"><label class="radio-inline">
										<input type="radio" name="isFlag" value="0" th:field="*{dragonAndTigerList.isFlag}"/>虎榜
									</label>
										<label class="radio-inline"><label class="radio-inline">
											<input type="radio" name="isFlag" value="1" th:field="*{dragonAndTigerList.isFlag}"/>龙榜
										</label>
								</div>
							</div>


							<div class="form-group text-center">
								<div class="col-sm-8 col-sm-offset-2">
									<button type="submit" class="btn btn-primary"><i class="fa fa-check"></i>提交</button>
									<div class="btn btn-danger" onclick="closeDow()"><i class="fa fa-remove"></i> 关闭</div>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div th:include="mall/advert/include::footer"></div>
	<script type="text/javascript" src="/js/appjs/businessCard/dragonAndTigerList/edit.js">
	</script>
	<script type="text/javascript">
		function closeDow() {
			var index = parent.layer.getFrameIndex(window.name); // 获取窗口索引
			parent.layer.close(index);
		}
	</script>
</body>

</html>
